package com.gilight.base.model;

import javax.validation.constraints.NotNull;

public class ColdOrderDetail {
    private Long id;

    private Long orderId;

    @NotNull(message = "商品id不能为空")
    private Long productId;

    private String productName;
    @NotNull(message = "商品数量不能为空")
    private Integer productNumber;
    @NotNull(message = "商品单价不能为空")
    private Double productPrice;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(Integer productNumber) {
        this.productNumber = productNumber;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }
}